
#include "hal_drv.h"

hal_hw_gpio_t *gpio_group[] = {GPIOA, GPIOB, GPIOC, GPIOD, GPIOE};

hal_hw_pwm_t *pwm_group[] = {TMR1, TMR2, TMR3, TMR4, TMR5, TMR6, TMR7, TMR8,
                            TMR9, TMR10, TMR11, TMR12, TMR13, TMR14};
uint8_t pwm_ch[] = {TMR_SELECT_CHANNEL_1,TMR_SELECT_CHANNEL_2,TMR_SELECT_CHANNEL_3,TMR_SELECT_CHANNEL_4,};

void hal_delay_us(uint32_t us)
{
    volatile uint32_t i;
    while(us--)
    {
        i = DELAY_US_TICK;
        while(i--);
    }
}

void hal_delay_ms(uint32_t ms)
{
    hal_delay_us(1000*ms);
}
